<template>
	<div>
		<div>
			<input type="text" v-model.number="msg" @click="change"> <span>{{ msg }}</span>	
		</div>
	</div>
</template>

<script>
	export default {
		name: 'demo',
		data(){
			return {
				msg: 0,
			}
		},
		methods: {
			change(event){
				// console.log(event.target.value, event.target.value.length);
				// this.msg = event.target.value;
				// alert("ssss");
				this.$emit("update:ActiveComponent", "Post")
			}
		}
	}
</script>